#include<stdio.h>
int main()
{
	int a=0,face=0,m;
	char ch;
	scanf("%d%c",&a,&ch);
	while(ch!='='&&face==0){
		scanf("%d",&m);
		switch(ch){
			case '+':a+=m;break;
			case '-':a-=m;break;
			case '*':a*=m;break;
			case '/':{
				if(m==0) {
					face=1;
					break;
				}
				else a/=m;break;
			}
			default:face=1;break;
		}
		scanf("%c",&ch);
	}
	if(face==1) printf("ERROR");
	else printf("%d",a); 
}
